/*
 * @Descripttion:
 * @version:
 * @Author: wellington
 * @Date: 2021-11-10 08:49:09
 */
import request from '@/utils/axios'

export function getOSSToken() {
  return request({
    url: '/client/v1/common/aliyunoss-token/get',
    params: { isPublic: 0 }
  })
}
// ocr获取证件信息
export function getOCRInfo() {
  return request({
    method: 'post',
    url: '/client/v1/common/ocr/check-save',
    data: {}
  })
}
// 活体token
export function getLivenessToken(data) {
  return request({
    method: 'post',
    url: '/demo/advance/h5/saveKtpAndGenerateToken',
    data
  })
}
// 活体对比结果
export function fetchLivenessResult(data) {
  return request({
    method: 'post',
    url: '/demo/advance/h5/getResult',
    data
  })
}
